<div class="form-group">
    {!! Form::label('name','计划名称：', ['class' => 'col-sm-2 control-label']) !!}
    <div class="col-sm-9">
        <input type="text" class="form-control" name="title" value="{{$plan->title}}">
    </div>
</div>

<div class="form-group">
    {!! Form::label('name','等级：', ['class' => 'col-sm-2 control-label']) !!}
    <div class="col-sm-9">
        <select class="form-control" name="level">
            <option value="1" {{$plan->level==1?'selected':''}}>1</option>
            <option value="2" {{$plan->level==2?'selected':''}}>2</option>
            <option value="3" {{$plan->level==3?'selected':''}}>3</option>
        </select>
    </div>
</div>

<div class="form-group">
    {!! Form::label('name','状态：', ['class' => 'col-sm-2 control-label']) !!}
    <div class="col-sm-9">

        <label class="checkbox-inline i-checks"><input name="status" type="radio" value="1" {{$plan->status==1?'checked':''}}> 启用</label>
        <label class="checkbox-inline i-checks"><input name="status" type="radio" value="0" {{$plan->status==1?'':''}}> 禁用</label>
    </div>
</div>

<div class="form-group">
    {!! Form::label('name','关联充值计划：', ['class' => 'col-sm-2 control-label']) !!}
    <div class="col-sm-9">
        @if($recharges->count()>0)
            <select class="form-control" name="recharge_rule_id">
                @foreach($recharges as $recharge)
                    <option value="{{$recharge->id}}" {{$plan->recharge->recharge_rule_id==$recharge->id?'selected':''}}>{{$recharge->name}}</option>
                @endforeach
            </select>
        @endif
    </div>
</div>
